﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;


namespace FXnaGis
{

   


    /// <summary>
    /// 用于表示标注的样式
    /// </summary>
    [Serializable]
    public class LableStyle
    {
        public LableStyle()
        {
            this._font = new Font("Arial",12);
        }




        Font _font;

        public Font Font
        {
            get { return _font; }
            set { _font = value; }
        }


        Color _color=Color.Black;

        public Color Color
        {
            get { return _color; }
            set { _color = value; }
        }


        bool _isScale = false;

        /// <summary>
        /// 标注大小是否缩放
        /// </summary>
        public bool IsScale
        {
            get { return _isScale; }
            set { _isScale = value; }
        }


        public void DrawString(Graphics g, string text,Point pt)
        {

            Brush brush = new SolidBrush(this._color);


            g.DrawString(text, this._font, brush, pt);

            brush.Dispose();

 

        }

    }
}
